package com.njtech.pet.entity;

import java.io.Serializable;
import java.util.Date;

/**
 * @author lxj
 * Date:2020-03-09 14:17
 * Description:好友类
 */
public class Friend implements Serializable{
    public Integer id;
    public User user;
    public User friend;
    public String state;
    public Date createDate;
    public Date updateDate;

    public Friend() {
    }

    public Friend(Integer id, User user, User friend, String state, Date createDate, Date updateDate) {
        this.id = id;
        this.user = user;
        this.friend = friend;
        this.state = state;
        this.createDate = createDate;
        this.updateDate = updateDate;
    }

    @Override
    public String
    toString() {
        return "Friend{" +
                "id=" + id +
                ", user=" + user +
                ", friend=" + friend +
                ", state='" + state + '\'' +
                ", createDate=" + createDate +
                ", updateDate=" + updateDate +
                '}';
    }

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public User getUser() {
        return user;
    }

    public void setUser(User user) {
        this.user = user;
    }

    public User getFriend() {
        return friend;
    }

    public void setFriend(User friend) {
        this.friend = friend;
    }

    public String getState() {
        return state;
    }

    public void setState(String state) {
        this.state = state;
    }

    public Date getCreateDate() {
        return createDate;
    }

    public void setCreateDate(Date createDate) {
        this.createDate = createDate;
    }

    public Date getUpdateDate() {
        return updateDate;
    }

    public void setUpdateDate(Date updateDate) {
        this.updateDate = updateDate;
    }
}
